< previous page page_613 next page >

Page 613
Table 30.2 Toolbar Common Properties.
PropertyDescription
AllowCustomizeIf this property is set to a True value, the user can double-click the toolbar at runtime to invoke the Customize Toolbar dialog box. This allows the user to customize the toolbar by adding and subtracting buttons from it. To enable the user to do this, you must set up different buttons that can be customized as well as provide the ability to save and restore the custom toolbar.
BorderStyleI typically set this property to 1-Fixed Single instead of 0-None to give the toolbar some definition when placed on a form.
ButtonHeightThis property determines the height of the buttons at runtime. This property is generally set to the correct value automatically when you set the ImageList property to a valid ImageList control. Remember that an ImageList control only contains images of a certain size, so the buttons can only be a certain height.
ButtonWidthThis property determines the width of the buttons at runtime. Like ButtonHeight, this property should be automatically set by the toolbar.
ButtonsThis property returns a reference to the Buttons collection on the toolbar. Each item in this collection is a Button object. See the next section for a description of Button objects.
ImageListSet this property to a valid ImageList control. This ImageList control must be on the same form as the toolbar control to be set at design time. You can also set this property at runtime. Youll learn how to do this later in the chapter.
ShowTipsSet this property to True to be able to display each of the Button objects ToolTipText properties.
WrappableSet this property to True if you want to have the Button objects wrap to another line when the user resizes the form to a width that will not allow the toolbar to display on one line.

Button Objects
Because the toolbar is made up of a collection of Button objects, lets take a look at the common properties for the Button object. Table 30.3 explains each of the properties youll be setting for your Button objects.

 
< previous page page_613 next page >

If you like this book, buy it!